<?php require_once 'source.php';?>
<?php require_once 'config.php';?>
<?php require_once 'dao/dao_db.php';?>
<?php require_once 'dao/dao_news.php';?>
<?php
$id=$_GET['nid'];
$result=get_news_detail($id);
mysql_close();
if(mysql_num_rows($result)!=0){
	$row=mysql_fetch_array($result);
	$title=$row['TITLE'];
	$content=$row['CONTENT'];
	$newsdate=$row['NEWSDATE'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo SYSTITLE?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body class="w">
<div class="wrapper wrapper_index">
	<div class="banner">
	</div>
	<div id="news_detail">
		<div style="text-align:center; padding:8px;">
			<h2><?php echo $title?></h2>
			<span class="newsdate"><?php echo $newsdate?></span>
		</div>
		<hr/>
		<div class="content">
			<?php echo nl2br($content)?>
		</div>
	</div>
</div>
</body>
</html>
